package com.myhome.money.dubbo.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.myhome.money.dubbo.FooService;
import com.myhome.money.dubbo.pojo.Student;

/**
 * @Author: 许路路
 * @Date: 2019/8/20
 */
@Service
public class FooServiceImpl implements FooService {

    @Override
    public String sayHi(String name) {
        System.out.println("hi " + name);
        return "hi " + name;
    }

    @Override
    public Student getStudent(Student student) {
        student.setId(student.getId() + 1);
        return student;
    }
}
